I want to check a checkbox after finding that it is checked in database. I'm trying this:
string chkboxbit = String.Empty;
CheckBox cb = new CheckBox();
chkboxbit = "ct100$ContentPlaceHolder1_chk" + item+ "" + i;
cb = (CheckBox)Page.FindControl(chkboxbit.ToString());
cb.Checked = false;
But I'm getting cb value null on debugging.
Anonymous User
27-Jan-2015Hi jay
I got it... and it works fine...
Thnks to all for their effort. and Thanks Kyojimaru.